import {faRequest} from "../../../adaptor/netConfig.js";


export default {
    createRoom(createRoomDto){
        return faRequest.post(`/room/createRoom`,JSON.stringify({
            ...createRoomDto
        }))
    },
    joinRoom(username,roomNumber){
        return faRequest.get(`/room/joinRoom?userId=${username}&roomNumber=${roomNumber}`)
    },
    exitRoom(username,roomNumber){
        return faRequest.get(`/room/exitRoom?userId=${username}&roomNumber=${roomNumber}`)
    },


}